<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title><?php echo $title; ?></title>
</head>
<body>
    <table style="font-family: Verdana,sans-serif; font-size: 12px; color: #374953; width: 600px;">
        <tr>
            <td align="left"><a href="<?php echo $store_url; ?>" title="<?php echo $store_name; ?>"><img src="<?php echo $logo; ?>" alt="<?php echo $store_name; ?>" style="border: none;" ></a></td>
        </tr>
        <tr>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td align="left"><?php echo $text_greeting; ?></td>
        </tr>
        <tr>
            <td>&nbsp;</td>
        </tr>
       
        <tr>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td align="left">
            
                    <table style="width: 100%; font-family: Verdana,sans-serif; font-size: 12px; color: #000000;">
                        <tr style="background-color: #FFF;">
                            <th align="left"><?php echo $text_order_detail; ?></th>
                            <th align="left">Adresse</th>  
                        </tr>
                        <tr style="background-color: #FFF;">
                            <td>
                                <?php echo $text_order_id; ?> <span style="color: #069; font-weight: bold;"><?php echo $order_id; ?></span><br />
                                <?php echo $text_date_added; ?> <?php echo $date_added; ?><br >
                                <?php echo "Ordrestatus:" //$text_payment_method; ?> <strong><?php echo $order_status; //$payment_method; ?></strong><br />
                                <?php echo $text_email; ?> <strong><?php echo $customer_email; ?></strong><br />
                                <?php echo $text_telephone; ?> <strong><?php echo $customer_telephone; ?></strong><br />
                            </td>
                            <td><?php echo $payment_address; ?></td> 
                        </tr>  
                    </table>  
                
	        </td> 
        </tr>  
        <tr>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td align="left">
                <table style="width: 100%; font-family: Verdana,sans-serif; font-size: 12px; color: #000000;">
                    <tr style="background-color: #CCCCCC;">
                        <th align="left" style="width: 8%; padding: 0.3em; color: #FFFFFF;"><?php echo $column_quantity; ?></th>
                        <th align="left" style="width: 40%; padding: 0.3em; color: #FFFFFF;"><?php echo $column_product; ?></th>                                               
                        <th align="left" style="width: 14%; padding: 0.3em; color: #FFFFFF;"><?php echo $column_price; ?></th>                           
                        <th align="left" style="width: 20%; padding: 0.3em; color: #FFFFFF;"><?php echo $column_total; ?></th>
                    </tr>
                    <?php foreach ($products as $product) { ?>
                        <tr style="background-color: #EEEEEE; text-align: center;">
                            <td align="center"><?php echo $product['quantity']; ?></td>
                            <td align="left" style="padding-left:5px;">
                                <?php echo $product['name']; ?>
                         
                                <?php foreach ($product['option'] as $option) { ?>
                                    <br />
                                    <span style="font-size:11px;">&nbsp;&nbsp;- <?php echo $option['name']; ?>: <?php echo $option['value']; ?></span>
                                   
                                <?php } ?>
                            </td>                                                                  
                           
                            <td align="left" style="padding-left:5px;"><?php echo $product['price']; ?></td>                                 
                            <td align="left" style="padding-left:5px;"><?php echo $product['total']; ?></td>
                        </tr>
                    <?php } ?>
                    
                    <?php foreach ($totals as $total) { ?>
                        <tr style="text-align: right;">
                            
                                <td colspan="2">&nbsp;</td>
                                <td style="background-color: #FFF; font-weight: bold; padding: 0.3em; text-align:right; padding-right:10px;"><?php echo $total['title']; ?></td>
                                                    
                            <td style="background-color: #FFF; padding: 0.3em; text-align:left; padding-left:5px;"><?php echo $total['text']; ?></td>
                        </tr>
                    <?php } ?>                    
                </table>
            </td>
        </tr>        
        <tr>
            <td>&nbsp;</td>
        </tr>
                  
        <tr>
            <td>&nbsp;</td>
        </tr>
        <?php if ($comment) { ?>              
            <tr>
                <td align="left"><?php echo $comment; ?></td>
            </tr>
			<tr>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>&nbsp;</td>
            </tr>
        <?php } ?>
        <?php if ($customer_id) { ?>
            <tr>
                <td align="left" style="background-color: #069; color: #FFF; font-size: 12px; font-weight: bold; padding: 0.5em 1em;"><?php echo $text_invoice; ?></td>
            </tr>
            <tr>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td align="left"><a href="<?php echo $invoice; ?>"><?php echo $invoice; ?></a></td>
            </tr>
            <tr>
                <td>&nbsp;</td>
            </tr>
        <?php } ?>
        <tr>
            <td align="center" style="font-size: 10px; border-top: 1px solid #069;"><a href="<?php echo $store_url; ?>" style="color: #069; font-weight: bold; text-decoration: none;"><?php echo $store_name; ?></a></td>
        </tr>
    </table>
</body>
</html>
